package com.jack.vipmis.vip.adv.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.springframework.format.annotation.DateTimeFormat;

import com.jack.vipmis.common.entity.BaseEntity;

/**
 * 广告内容
 * 
 * @author JackLiang
 * @date 2014-6-18
 * @version 1.0
 */
@Entity
@Table(name = "adtable")
public class Advertising extends BaseEntity<Long> {

	@Column(name = "AdTitle")
	private String	advName;

	@Column(name = "AdImage")
	private String	advLogo;					// 内容详情

	@Column(name = "AdType")
	private Integer	type;

	@Column(name = "AdImageContent")
	private String	advContent;				// 图片

	@Column(name = "AdDisTip")
	private String	advDisTip;					// 特别 提示

	@Column(name = "create_date")
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date	createDate	= new Date();

	@Column(name = "remark")
	private String	remark;

	@Column(name = "is_show")
	private Boolean	show;

	// getter setter
	public String getAdvName() {
		return advName;
	}

	public void setAdvName(String advName) {
		this.advName = advName;
	}

	public String getAdvLogo() {
		return advLogo;
	}

	public void setAdvLogo(String advLogo) {
		this.advLogo = advLogo;
	}

	public String getAdvContent() {
		return advContent;
	}

	public void setAdvContent(String advContent) {
		this.advContent = advContent;
	}

	public String getAdvDisTip() {
		return advDisTip;
	}

	public void setAdvDisTip(String advDisTip) {
		this.advDisTip = advDisTip;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Boolean getShow() {
		return show;
	}

	public void setShow(Boolean show) {
		this.show = show;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

}
